<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        div{
            height: 1200px;
            border: 1px solid red;
        }
        #No1{
            background-color: blue;
        }
        #No2{
            background-color: green;
        }
        #No3{
            background-color:black;
        }
        #No4{
            background-color: yellow;
        }
    </style>
</head>
<body>
    <a href="#No1"></a>
    <a href="#No2"></a>
    <a href="#No3"></a>
    <a href="#No4"></a>
    <!-- 瞄链接转跳 -->
    <div id="No1">class1</div>
    <div id="No2">class2</div>
    <div id="No3">class3</div>
    <div id="No4">class4</div>
</body>
</html>